import request from '@/utils/request'

// 查询系统任务通知列表分页
export function listSysTaskNotice(query) {
  return request({
    url: '/work/sysTaskNotice/list',
    method: 'get',
    params: query
  })
}

// 获取未读消息系统通知
export function getTaskNotReaded() {
  return request({
    url: '/work/sysTaskNotice/notReaded',
    method: 'get',
  })
}

// 查询系统任务通知详细
export function getSysTaskNotice(id) {
  return request({
    url: '/work/sysTaskNotice/' + id,
    method: 'get'
  })
}

// 删除系统任务通知
export function delSysTaskNotice(id) {
  return request({
    url: '/work/sysTaskNotice/' + id,
    method: 'delete'
  })
}

// 已读系统通知
export function readedSysTaskNotice(id) {
  return request({
    url: '/work/sysTaskNotice/readed/' + id,
    method: 'post'
  })
}
